from models import Record
from django.http import HttpResponse
import json
def save_record(dc):
    Record(**dc).save()
    response_data={
        'state':'ok'
    }
    return  HttpResponse(json.dumps(response_data), content_type="application/json")